# EEMS 
cd /home/pub/software/eems/runeems_snps/src/
/runeems_snps --params PR1.ini --seed 123

#example of PR1.ini. We repeated the process three times for deme = 400 and 800 respectively and 800 shows good convergence.
datapath = /home/pub/software/EEMS/input_file/PR1   # The folder where the diffs, outers, and coord files are located.
mcmcpath = /home/pub/software/EEMS/output_file/PR1   # Output file path
nIndiv = 79  # The number of sample 
nSites = 1999999    #The number of SNP
nDemes = 800    #demes
diploid = true
numMCMCIter = 2000000
numBurnIter = 1000000
numThinIter = 9999

#plot in R. The new plotting version can be found at https://github.com/dipetkov/reemsplots2.
library(rEEMSplots)
mcmcpath = "/home/pub/software/EEMS/output_file/PR1"
plotpath = "/home/pub/software/EEMS/plot/PR_1/PR"
eems.plots(mcmcpath, plotpath, longlat = TRUE)











